/**   
* @Title: HttpApplication.java 
* @Package: com.ifuntimes.http
* @Description: TODO
* @author:YuHai
* @Email: it@ifuntimes.com  
* @date 2017年09月05日 下午4:22:48 
* @version V1.0   
*/
package com.ifuntimes.http;

import org.glassfish.jersey.message.GZipEncoder;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.filter.EncodingFilter;

/**
 * @ClassName: HttpApplication
 * @Description: TODO
 * @author YuHai it@ifuntimes.com
 * @date 2017年09月05日 下午7:57:55 
 * 
 */
public class HttpResourceConfig extends ResourceConfig {

	/**
	 * <p>
	 * Title:
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 */
	public HttpResourceConfig() {
		packages(CrunchifyAPI.class.getPackage().getName());
		register(CrunchifyAPI.class);
		register(CORSResponseFilter.class);
		EncodingFilter.enableFor(this, GZipEncoder.class);
	}
}
